package com.difsonapps.contacttranslator.service.itf;

import java.util.List;

import org.springframework.transaction.annotation.Transactional;

import com.difsonapps.contacttranslator.dto.UserDTO;



public interface UserService {

	@Transactional
	public abstract void insert(UserDTO userDTO);

	@Transactional
	public abstract void update(UserDTO userDTO);

	@Transactional
	public abstract UserDTO get(int id);

	@Transactional
	public abstract List<UserDTO> getAll();

	@Transactional
	public abstract void delete(UserDTO userDTO);
	
	@Transactional
	public abstract UserDTO getByEmail(String email) ;
	
	@Transactional
	public abstract UserDTO getByCode(String code) ;
	
	@Transactional
	public abstract UserDTO getByEmailCode(String code,String email) ;
	
	@Transactional
	public abstract UserDTO getByNumber(String number) ;

}